<?php

namespace app\index\validate;

use think\Validate;
 
class Commentv extends Validate
{
    protected $rule =   [
        'word_id'  => 'require',
        'content'   => 'require|max:300',   
    ];
    
    protected $message  =   [
        'word_id.require' => '该文章不存在',
        'content.max'     => '评论最多不能超过300	个字符',
        'content.require'   => '内容必须',

    ];
}